package com.lzx.adx.report.enums;

public enum HwCovertKjbTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    activate("1","activate","激活"),
    retain("2","retain","次留"),
    reEngage("4","reEngage","唤醒")


    ;


    private String kjbode;

    private String hwCode;

    private String msg;


    HwCovertKjbTypeEnums(String kjbode, String hwCode, String msg) {
        this.kjbode = kjbode;
        this.hwCode = hwCode;
        this.msg = msg;
    }



    public String getKjbode() {
        return kjbode;
    }

    public String getHwCode() {
        return hwCode;
    }

    public String getMsg() {
        return msg;
    }

    public static String getHwCode(String kjbode){
        for (HwCovertKjbTypeEnums value : HwCovertKjbTypeEnums.values()) {
            if(value.getKjbode().equals(kjbode)){
                return value.getHwCode();
            }
        }
        return  null;
    }

    public static void main(String[] args) {
        String hwCode1 = getHwCode("2");
        System.out.println(hwCode1);
    }
}
